/* L0PlugSuitPreferencePane */

#import <Cocoa/Cocoa.h>
#import <PreferencePanes/PreferencePanes.h>

#import "L0PlugSuitWire.h"

@interface L0PlugSuitPreferencePane : NSPreferencePane {
	NSMutableArray* _plugIns;
	IBOutlet NSArrayController* _controller;
	
	IBOutlet NSImageView* _icon;
	IBOutlet NSImageView* _light;
	IBOutlet NSButton* _enableButton;
	IBOutlet NSProgressIndicator* _enableSpinner;
	IBOutlet NSTextField* _enableField;
	
	BOOL _shownRestartWarning;
	
	NSTimer* _timer;
}

- (void) setRegisteredPlugInsFromDictionary:(NSDictionary*) dictionary;
- (void) _updateRegisteredPlugIns;

- (NSArray*) registeredPlugIns;

- (IBAction) showSelectedPlugIn:(id) sender;

- (NSImage*) imageNamed:(NSString*) name;

- (IBAction) toggleEnabling:(id) sender;

- (BOOL) requiresAuthorization;
- (BOOL) authorize;
- (void) enable;

- (void) warnAboutApplicationRestart:(BOOL) willEnable;
- (void) _updateRegisteredPlugIns;

@end
